﻿using KayakMes.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KayakMes.ProductControl.Domain.Entity
{
    /// <summary>
    /// 产品管理—产品
    /// </summary>
    [SugarTable("ProductModel")]
    public class ProductModel:BaseEntity
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsStart { get; set; }
        /// <summary>
        /// 线别名称
        /// </summary>
        public string ProductLines { get; set; }
        /// <summary>
        /// 型号名称
        /// </summary>
        public int ModelId { get; set; }
        /// <summary>
        /// 规格名称
        /// </summary>
        public int SpecificationId { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public int SupplierId { get; set; }
        /// <summary>
        /// 有效日期
        /// </summary>
        public DateTime VaildDate { get; set; }
        /// <summary>
        /// 品类名称
        /// </summary>
        public string ClassifyId { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string SpecificationModel {  get; set; }
        /// <summary>
        /// 产品单位
        /// </summary>
        public int UnitId {  get; set; }
        /// <summary>
        /// 产品分类
        /// </summary>
        public int ProductClassifyId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 采购价格
        /// </summary>
        public int PurchasePrice { get; set; }
        /// <summary>
        /// 销售价格
        /// </summary>
        public int SalesPrice { get; set; } 
        /// <summary>
        /// 启用安全库存
        /// </summary>
        public bool IsSafety {  get; set; }
        /// <summary>
        /// 最大库存
        /// </summary>
        public int MaxInventory { get; set; }
        /// <summary>
        /// 最小库存
        /// </summary>
        public int MinInventory { get; set; }
    }
}
